<!DOCTYPE HTML>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>code/ttz.css" media="screen">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>code/cupertino/jquery-ui-1.8.10.custom.css" media="screen">
    <script type="text/javascript" src="<?php echo base_url(); ?>code/jquery-1.5.1.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>code/jquery-ui.js"></script>
    <link rel="shortcut icon" href="<?php echo base_url(); ?>code/images/icon.ico" />

    <title><?php echo SITE_NAME; ?> | 团购导航网站大全</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="keywords" content=" 团购, 导航, 拉手, 美团, <?php echo SITE_NAME; ?>">
    <meta name="description" content="中国最精准全面又实惠的团购导航网站">
    <script type="text/javascript" src="<?php echo base_url(); ?>code/ttz.js"></script>
  </head>
  <body>
    <div id="wrapper">
      <?php require('head.php'); ?>
      <?php require('nav.php'); ?>
      <div class="wrap">
        <div id="dashboardwrap" style="width:940px">
          <div id="dashboard" class="box">
            <div id="dashboard-top">
              <div class="dtHeader" style="padding-bottom:10px">
                <h2>城市团购</h2>
                <div class="clear"></div>
              </div>
            </div><!-- end #dashboard-top -->
            <div id="dashboard-body">
              <div class="deal">
                <div class="col1">
                  <a href="<?php echo $good['goods_url']; ?>" target="_blank"><img src="<?php echo $good['img_url']; ?>" alt="<?php echo htmlspecialchars($good['title']); ?>" class="image" width="165"></a>
                </div><!-- end .col1 -->
                <div class="col2" style="width:450px !important">
                  <h2><a href="<?php echo $good['goods_url']; ?>" target="_blank"><?php echo htmlspecialchars($good['title']); ?></a></h2>
                  <span class="location_wrap">
                    <p class="address">
                      地址：<?php echo htmlspecialchars($good['merchant_addr']); ?>
                    </p>
                  </span>

                  <div class="tags" style="clear:both">
                      <p><span class="tag_wrap"><a class="deal_tag on"><?php echo $category; ?></a></span> </p>
                  </div>
                  <!-- JiaThis Button BEGIN -->
                  <div id="ckepop" class="dealshare">
                    <span>分享到：</span>
                    <a class="jiathis_button_tsina"></a>
                    <a class="jiathis_button_kaixin001"></a>
                    <a class="jiathis_button_renren"></a>
                  </div>
                  <script type="text/javascript" src="http://v1.jiathis.com<?php echo base_url(); ?>code/jia.js" charset="utf-8"></script>
                  <!-- JiaThis Button END -->
                  <div style="clear: both;"></div>
                </div><!-- end .col2 -->
                <div class="col3" style="float:right">
                  <div class="container first">
                    <ul>
                      <li class="discount"><span>￥<?php echo $good['sale_price']; ?></span><a href="<?php echo $good['goods_url']; ?>" target="_blank" class="formbutton">购买</a><div class="clear"></div></li>
                    </ul>
                  </div>
                  <div class="container">
                    <ul class="info">
                      <li><span>原价</span><br>￥<?php echo $good['original_price']; ?></li>
                      <li><span>折扣</span><br><?php echo number_format($good['sale_rate'],1) ; ?>折</li>
                      <li><span>节省</span><br>￥<?php echo $good['original_price'] - $good['sale_price'] ; ?></li>
                      <li class="last"><span>购买人数</span><br><?php echo $good['sales_num'] ; ?></li>
                    </ul>
                  </div><!-- end .container-->
                  <div class="container">
                    <ul>
                      <li class="time countdown hasCountdown ttzcountdown" endtime="<?php echo strtotime($good['close_time']).'000'; ?>"></li>
                    </ul>
                  </div><!-- end .container-->
                </div><!-- end .col3 -->
                <div class="clear"></div>
              </div><!-- end .deal -->
            </div><!-- end #dashboard -->
          </div>
          <div class="clear"></div>
        </div>
      </div><!-- end .wrap -->

    </div><!-- end #wrapper -->
    <div class="clear"></div>

    <?php require('foot.php'); ?>